<?php

class Mod_Content extends CI_Model{
	public function getPageById($id){
		$this->db->select('*')->where(field('id'), $id);
		$result = $this->db->get(table('page'));
		$result = $result->result_array();
		return $result[0];
	}
}